package com.bencatlin.modbusdroid.OldVersion;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.bencatlin.modbusdroid.R;
import com.uuzuche.lib_zxing.activity.CaptureActivity;

/**
 * Created by Yanlutian on 2017/5/22.
 */

public class Pay_Success extends Activity{
    //
    EditText Pay_State_Text = null;
    Button Pay_Complete_Btn = null;
    //
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.pay_success);
        //
        Pay_State_Text = (EditText)findViewById(R.id.Pay_State_Text);
        Pay_Complete_Btn = (Button) findViewById(R.id.Pay_Complete_Btn);
        //
        Intent intent1 = getIntent();
        Bundle bundle1 = intent1.getExtras();
        String result = bundle1.getString("bbb");
        Pay_State_Text.setText(result);
        //
        Pay_Complete_Btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                发送modbus数据，完成支付
                Intent intent1 = new Intent(Pay_Success.this, ModbusDroid.class);
               startActivity(intent1);
            }
        });

    }



}
